<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
class AdminUserRoleRelation extends Model
{
    //
    protected $table = 'admin_user_role_relation';
    public $timestamps = 'Y-m-d H:i:s';

    protected $fillable = [
        'user_id', 'role_id'
    ];

    protected $hidden = [
        'deleted_at',
    ];

    public function menus(){
    	return $this->hasMany('App\Model\AdminRoleMenuRelation','role_id','role_id');
    }
    public function menus2(){
        return $this->hasMany('App\Model\AdminRoleMenuMRelation','role_id','role_id');
    }
}
